<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html>
	<head>
		<title>登录</title>
		<link
			href="${pageContext.request.contextPath}/resources/common/style/bootstrap.min.css"
			rel="stylesheet" media="screen">
		<link
			href="${pageContext.request.contextPath}/resources/common/style/bootstrap-responsive.min.css"
			rel="stylesheet" media="screen">
		<script
			src="${pageContext.request.contextPath}/resources/common/scripts/jquery-1.8.3.min.js"></script>
		<script
			src="${pageContext.request.contextPath}/resources/common/scripts/bootstrap.min.js"></script>
	</head>
	<body>
		当前国际化语言编码:${pageContext.response.locale}
		<br />
		Language :
		<a href="?lang=en">English</a>|
		<a href="?lang=zh_CN">Chinese</a>
		<br />
		
		<div class="container-fluid">
			<div class="row-fluid">
				<div class="span1">
					<!-- blank -->
				</div>
				<div class="span8">
					<div id="div_header">
						<h4>wendllup小站的账号</h4>
						<h4>登录wendellup小站</h4>
					</div>
					<hr />
					<div id="div_content">
						<form:form action="${pageContext.request.contextPath}/login?redirectURL=${redirectURL}"
							method="post" commandName="accountVo" modelAttribute="accountVo" class="form-horizontal">
							<div class="control-group">
								<label class="control-label" for="accountName">
									<spring:message code="login.username"/>:
								</label>
								<div class="controls">
									<input id="accountName" type="text" name="accountName" value="${accountVo.accountName}"/>
									<form:errors path="accountName"></form:errors>
								</div>
								
							</div>
							<div class="control-group">
								<label class="control-label" for="accountPassword">
									<spring:message code="login.password"/>:
								</label>
								<div class="controls">
									<form:password path="accountPassword" id="accountPassword"/>
									<form:errors path="accountPassword" />
								</div>
							</div>
							
							<div class="control-group">
								<label class="control-label">
									<spring:message code="login.validateCode"/>:
								</label>
								<div class="controls">
									<img src="kaptcha.jpg"
										onclick="this.src='${pageContext.request.contextPath}/kaptcha.jpg?'+new Date()" />
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" for="validateCode">
									<spring:message code="login.inputNumber"/>:
								</label>
								<div class="controls">
									<form:input path="validateCode" id="validateCode" />
									<form:errors path="validateCode" />
								</div>
							</div>
							<div class="control-group">
								<div class="controls">
									<button type="submit" class="btn">登录</button>
								</div>
							</div>
						</form:form>
					</div>
					<div id="div_footer">
						<a href="${pageContext.request.contextPath}/register">还没有账号,去注册</a>
					</div>
				</div>
				<div class="span3"></div>
			</div>
		</div>
	</body>
</html>